package com.yungu.swift.socket.communication.message;


import com.yungu.swift.socket.communication.message.base.Message;
import com.yungu.swift.socket.communication.message.base.MessageType;

public class GetOrderLocationResponseMessage extends Message {
    /**
     * 上传时间（时间戳）
     */
    private Long uploadTime;
    /**
     * 经度
     */
    private Double lng;
    /**
     * 纬度
     */
    private Double lat;
    /**
     * 订单中累计距离
     */
    private Double mileage;
    /**
     * 订单总费用
     */
    private Double totalFare;
    private boolean success;
    private String msg;

    public GetOrderLocationResponseMessage(String clientUuid) {
        super(MessageType.GET_LOCATION_ORDER_RESPONSE, clientUuid);
    }

    public GetOrderLocationResponseMessage(String clientUuid, Long uploadTime, Double lng, Double lat, Double mileage, Double totalFare, boolean success, String msg) {
        super(MessageType.GET_LOCATION_ORDER_RESPONSE, clientUuid);
        this.uploadTime = uploadTime;
        this.lng = lng;
        this.lat = lat;
        this.mileage = mileage;
        this.totalFare = totalFare;
        this.success = success;
        this.msg = msg;
    }

    public Long getUploadTime() {
        return uploadTime;
    }

    public void setUploadTime(Long uploadTime) {
        this.uploadTime = uploadTime;
    }

    public Double getLng() {
        return lng;
    }

    public void setLng(Double lng) {
        this.lng = lng;
    }

    public Double getLat() {
        return lat;
    }

    public void setLat(Double lat) {
        this.lat = lat;
    }

    public Double getMileage() {
        return mileage;
    }

    public void setMileage(Double mileage) {
        this.mileage = mileage;
    }

    public Double getTotalFare() {
        return totalFare;
    }

    public void setTotalFare(Double totalFare) {
        this.totalFare = totalFare;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
